<template>
  <my-pro fixed :menus="menus"
          :menu-props="{router: true}"
          :tab="tab">
    <router-view></router-view>
  </my-pro>
</template>

<script>
  import {MyPro} from '$ui'

  const menus = [
    {
      icon: 'el-icon-setting',
      text: '导航菜单一',
      index: '/'
    },
    {
      icon: 'el-icon-s-marketing',
      text: '导航菜单二',
      index: '/page'
    },
    {
      icon: 'el-icon-link',
      text: 'C++ DLL测试',
      index: '/dllctest'
    },
    {
      icon: 'el-icon-cpu',
      text: '串口测试',
      index: '/serialporttest'
    },
    {
      icon: 'el-icon-info',
      text: '导航菜单五',
      index: '/about'
    }
  ]

  export default {
    components: {
      MyPro
    },
    data() {
      return {
        menus,
        tab: {
          label: '导航菜单一',
          value: '/'
        }
      }
    }
  }
</script>

<style scoped>

</style>
